package com.xteam.xnetworkdisk.sys.controller;

import java.util.Arrays;
import java.util.Map;
import java.util.Objects;

import com.xteam.xnetworkdisk.common.CurrentUser;
import com.xteam.xnetworkdisk.dto.UserLoginDTO;
import com.xteam.xnetworkdisk.sys.entity.UserEntity;
import com.xteam.xnetworkdisk.utils.PageUtils;
import com.xteam.xnetworkdisk.utils.R;
import com.xteam.xnetworkdisk.vo.SettingsModifyVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.xteam.xnetworkdisk.sys.entity.SettingsEntity;
import com.xteam.xnetworkdisk.sys.service.SettingsService;




/**
 * 
 *
 * @author xiaozhiyong
 * @email xiaozhiyong03@gmail.com
 * @date 2024-08-19 10:35:03
 */
@RestController
@RequestMapping("sys/settings")
public class SettingsController {
    @Autowired
    private SettingsService settingsService;


    /**
     * 获取设置信息
     * @return
     */
    @GetMapping("getSettingsInfo")
    public R getSettingsInfo(){
        R result = settingsService.getSettingsInfo();
        return result;
    }


    /**
     * 修改设置信息
     * @return
     */
    @PostMapping("modSettingsInfo")
    public R modSettingsInfo(@RequestBody SettingsModifyVO settingsModityVo){
        R result = settingsService.modSettingsInfo(settingsModityVo);
        return result;
    }

}
